package socket;

import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] allOut={1,4,5,44,63,456,654,65,7498,7,9674,6,46,64};
        int pw=456;
        System.out.println(Arrays.toString(allOut));
        //将pw从数组allOut中删除
        for(int i=0;i<allOut.length;i++){
            if(pw==allOut[i]){
                allOut[i]=allOut[allOut.length-1];
                allOut=Arrays.copyOf(allOut,allOut.length-1);
                break;
            }
        }
        System.out.println(Arrays.toString(allOut));
    }
}
